#!/bin/bash
sleep 5s
gnome-terminal -x bash -c  "source ${HOME}/kbt_ws/devel/setup.bash;cd ${HOME}/kbt_ws/src/kbtdj_air/rtsp;./mediamtx;exec bash"
sleep 3s
gnome-terminal -x bash -c  "source ${HOME}/kbt_ws/devel/setup.bash;roslaunch mavros px4.launch tgt_system:=1 fcu_url:=/dev/ttyS3:115200;exec bash"
sleep 3s
#gnome-terminal -x bash -c "source $HOME/kbt_ws/devel/setup.bash;roslaunch union_ros_serial main.launch; exec bash"
sleep 3s
gnome-terminal -x bash -c "source ${HOME}/kbt_ws/devel/setup.bash;roslaunch off_board_test main.launch;exec bash"
sleep 3s 
gnome-terminal -x bash -c  "source ${HOME}/kbt_ws/devel/setup.bash;rosrun kbt_cam kbt_cam_node;exec bash"
#gnome-terminal -x bash -c  "source ${HOME}/kbt_ws/devel/setup.bash;python3 ${HOME}/kbt_ws/src/kbtdj_air/det/scripts/cam1_det.py;exec bash"
sleep 3s 
gnome-terminal -x bash -c "source $HOME/kbt_ws/devel/setup.bash; roslaunch swarm_ros_bridge gcs_bridge.launch; exec bash"
wait
exit 0
